const Radio = require("./radio");
var radio = require("./radio");

var infoObj = {"radioName":"音乐频道"};
var radio = new Radio(infoObj);

radio.on("start",function(){
    console.log(this.radioName + "started");
    console.log("lalala……");
})

radio.on("stop",function(){
    console.log(this.radioName + "stoped");
})

setTimeout(() => {
    radio.emit("start")
},1000)

setTimeout(() => {
    radio.emit("stop");
},5000)